package com.training.java.corejava.interfacedemo;

public abstract class SuperClassComputer implements Computers
{
	private String make;
	private String model;
	private int screenSize;
	private boolean isConnected;
	private boolean isStarted;
	
	SuperClassComputer()
	{
		
	}
	
	SuperClassComputer(String make,String model,int screenSize)
	{
	   	this.make=make;
	   	this.model=model;
	   	this.screenSize=screenSize;
	}
	

	public String getMake() {
		return make;
	}

	public String getModel() {
		return model;
	}

	public int getScreenSize() {
		return screenSize;
	}

		
	public boolean isStarted() {
		return isStarted;
	}

	
	public void switchOn()
	{
		isStarted=true;
		System.out.println("Switching on...");
		
	}
	
	public void switchOff()
	{
		isStarted=false;
		System.out.println("Switching off...");
	}
	
	public void connectWiFi()
	{
		if (!isConnected())
		{
		setConnected(true);
		System.out.println("Internet is connected. ");
		}
	}
	

	public abstract void showInfo();


	public boolean isConnected() {
		return isConnected;
	}

	public void setConnected(boolean isConnected) {
		this.isConnected = isConnected;
	}

	
	
	
	
	

}
